package com.sh169.beans;

import java.util.List;

public class RoleUrl {

	private String url;
	private List<String> access;
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public List<String> getAccess() {
		return access;
	}
	public void setAccess(List<String> access) {
		this.access = access;
	}
	public String toString(){
		StringBuffer sb = new StringBuffer();
		sb.append("url:").append(url).append("\n\troles:");
		if(access==null || access.size()==0) sb.append("0");
		else {
			for(int i=0;i<access.size();i++){
				if(i!=0) sb.append(",");
				sb.append(access.get(i));
			}
		}
		return sb.toString();
	}
}
